package com.atguigu.delivery.service.impl;

import com.atguigu.delivery.dao.api.CompanyDao;
import com.atguigu.delivery.dao.impl.CompanyDaoImpl;
import com.atguigu.delivery.entity.Company;
import com.atguigu.delivery.service.api.CompanyService;

import java.util.List;

public class CompanyServiceImpl implements CompanyService {

    private CompanyDao companyDao = new CompanyDaoImpl();

    @Override
    public List<Company> getAllCompanyList() {
        return companyDao.selectAll();
    }
}
